import request from '@/utils/request'

export function getAll(params) {
  return request({
    url: '/inspectAboSample',
    method: 'get',
    params,
  })
}

export function getOne(id) {
  return request({
    url: '/inspectAboSample/' + id,
    method: 'get',
  })
}

export function addOne(data) {
  return request({
    url: '/inspectAboSample',
    method: 'post',
    data,
  })
}

export function updateOne(id, data) {
  return request({
    url: '/inspectAboSample/' + id,
    method: 'patch',
    data,
  })
}

export function deleteOne(id) {
  return request({
    url: '/inspectAboSample/' + id,
    method: 'delete',
  })
}

export function sync() {
  return request({
    url: '/inspectAboSample/sync',
    method: 'post',
  })
}
